home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / PrEqu.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  6.2 KB  |  153 lines  |  [TEXT/MPS ]

  1. ; Version: 3.09
  2. ; Created: Friday, October 20, 1989 at 9:36:24 PM
  3. ;
  4. ; File: PrEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1991
  8. ; All Rights Reserved
  9. ;
  10. ;_______________________________________________________________________
  11. ; Printing Equates -- This file defines the public high-level equates for the
  12. ; Macintosh printing software. Record stuctures may have additional private
  13. ; equates which are defined by and reserved for use by Apple Computer, Inc.
  14. ;_______________________________________________________________________
  15.  
  16.     IF &TYPE('__IncludingPrEqu__') = 'UNDEFINED' THEN
  17. __IncludingPrEqu__    SET    1
  18.  
  19.  
  20. ; No external refs required
  21.  
  22. ; Printing Code Contsants
  23.  
  24. ; These are the PrDrvr constants.
  25.  
  26. iPrDrvrID         EQU         2                         ; Driver's ResID
  27. iPrDrvrRef        EQU         $FFFD                     ; Driver's RefNum = NOT ResID
  28. iPrDrvrDev        EQU         $FD00                     ; Driver's QD Dev num = RefNum in Hi Byte, variant in lo
  29. iPrBitsCtl        EQU         4                         ; The Bitmap Print Proc's ctl number
  30. lScreenBits       EQU         $00000000                 ; The Bitmap Print Proc's Screen Bitmap param
  31. lPaintBits        EQU         $00000001                 ; The Bitmap Print Proc's Paint [sq pix] param
  32. iPrIOCtl          EQU         5                         ; The Raw Byte IO Proc's ctl number
  33. iPrEvtCtl         EQU         6                         ; The PrEvent Proc's ctl number
  34. lPrEvtAll         EQU         $0002FFFD                 ; The PrEvent Proc's CParam for the entire screen
  35. lPrEvtTop         EQU         $0001FFFD                 ; The PrEvent Proc's CParam for the top folder
  36. iPrDevCtl         EQU         7                         ; The PrDevCtl Proc's ctl number
  37. iPrReset          EQU         1                         ; The PrDevCtl Proc's CParam for reset
  38. iPrPageEnd        EQU         2                         ; The PrDevCtl Proc's CParam for end page
  39. iPrLineFeed       EQU         3                         ; The PrDevCtl Proc's CParam for paper advance
  40. iFMgrCtl          EQU         8                         ; The FMgr's Tail-hook ctl call
  41. iFMgrStat         EQU         8                         ; The FMgr's Pre-hook status call
  42.  
  43. ; Printing data structures
  44.  
  45. ; Print Info data structure TPrInfo
  46. ; The parameters needed for page composition.
  47.  
  48. iDev              EQU         0                         ; Font mgr/QuickDraw device code [integer]
  49. rPage             EQU         6                         ; printable area device coord. [rect]
  50.  
  51. ; Printer Style data structure
  52. ; The printer configuration and usage information.
  53.  
  54. iPageV            EQU         2                         ; V paper size in units of 1/iPrPgFract [word]
  55. iPageH            EQU         4                         ; H paper size. [word]
  56. feed              EQU         7                         ; paper feeder type [byte]
  57.  
  58. ; Print eXtra Info data structure
  59. ; The print time eXtra information.
  60.  
  61. iDevBytes         EQU         6                         ; Size for allocation. [word]
  62.  
  63.  
  64. ; Print Job data structure
  65. ; Print "form" for a single print request.
  66.  
  67. iFstPage          EQU         0                         ; Page Range [word]
  68. iLstPage          EQU         2                         ; [word]
  69. iCopies           EQU         4                         ; # copies [word]
  70. bJDocLoop         EQU         6                         ; Draft quality print flag [byte]
  71. fFromApp          EQU         7                         ; Printing from an App (not PrApp) flag [byte]
  72. pIdleProc         EQU         8                         ; Idle Proc [pointer]
  73. pFileName         EQU         12                        ; Spool File Name: NIL for default [pointer]
  74. iFileVol          EQU         16                        ; Spool File vol [word]
  75. bFileVers         EQU         18                        ; Spool File version [byte]
  76. iPrJobSize        EQU         20                        ; The PrJob size.[20]
  77.  
  78.  
  79. ; The universal 120 byte printing record
  80.  
  81. iPrVersion        EQU         0                         ; Printing software version
  82. prInfo            EQU         2                         ; the PrInfo data associated with the current style.
  83. rPaper            EQU         16                        ; The paper rectangle [offset from rPage].
  84. prStl             EQU         24                        ; This print request's style.
  85. prInfoPT          EQU         32                        ; Print Time Imaging metrics
  86. prXInfo           EQU         46                        ; Print-time (expanded) Print info record.
  87. prJob             EQU         62                        ; The Print Job request
  88. iPrintSize        EQU         120                       ; The Print record size.[120]
  89.  
  90. ; Print Port structure
  91. ; A graf port, its procs, plus some extra.
  92.  
  93. gPort             EQU         0                         ; The Printer's graf port
  94. iPrPortSize       EQU         178                       ; The PrPort size.[178]
  95.  
  96.  
  97. ; Print Status data structure
  98.  
  99. iTotPages         EQU         0                         ; Total pages in Print File [word]
  100. iCurPage          EQU         2                         ; Current page number [word]
  101. iTotCopies        EQU         4                         ; Total copies requested [word]
  102. iCurCopy          EQU         6                         ; Current copy number [word]
  103. iTotBands         EQU         8                         ; Total bands per page [word]
  104. iCurBand          EQU         10                        ; Current band number [word]
  105. fPgDirty          EQU         12                        ; current page has been written to? [byte]
  106. fImaging          EQU         13                        ; in band's DrawPic call? [byte]
  107. hPrint            EQU         14                        ; active Printer record [handle]
  108. pPrPort           EQU         18                        ; active PrPort [pointer]
  109. iPrStatSize       EQU         26                        ; The PrStatus size[26 bytes]
  110.  
  111.  
  112. ; Less common print code stuff
  113.  
  114. wDev              EQU         0                         ; the drvr #, hi byte = refnum, lo byte = variant [word]
  115.  
  116.  
  117. ; These are the definitions for the Print code
  118.  
  119. iPrAbort          EQU         128                       ; Abort
  120. iPrRelease        EQU         3                         ; Current version number of the code.
  121. iPrPgFract        EQU         120                       ; Paper sizes are in 120ths of an inch
  122.  
  123. ; ! ! ! W A R N I N G ! ! !
  124. ; The following PrintErr parameter location should not be accessed directly.
  125. ; To get or set printer errors call the procedures PrError and PrSetError
  126. ; This will insure compatibility with future Print code releases.
  127. ; This parameter is furnished here simply for backward compatibility.
  128. ;PrintErr EQU $944 ; print error global location
  129.  
  130.  
  131. ; Printing Methods -- The DocLoop types
  132.  
  133. bDraftLoop        EQU         0                         ; draft printing
  134. bSpoolLoop        EQU         1                         ; spooled printing
  135. bUser1Loop        EQU         2
  136. bUser2Loop        EQU         3
  137.  
  138. ; Various Resource Types & ID's
  139.  
  140. lPStrType         EQU         $53545220                 ; "STR ": Res type for the Pr Rsrc file name
  141. iPStrRFil         EQU         $E000                     ; Str -8192 is in SysRes & names the current printer
  142. lPrintType        EQU         $50524543                 ; "PREC": Res type for the hPrint records
  143. iPrintDef         EQU         0                         ; Default hPrint
  144. iPrintLst         EQU         1                         ; Last used hPrint
  145. iPrintDrvr        EQU         2                         ; .Print's parameter record; not a Print rec
  146. lPfType           EQU         $5046494C                 ; "PFIL"
  147. lPfSig            EQU         $50535953                 ; "PSYS"
  148. iPfIcon           EQU         140                       ;
  149. lPrType           EQU         $4150504C                 ; "APPL"
  150. lPrSig            EQU         $50535953                 ; "PSYS"
  151. iPrIcon           EQU         138                       ;
  152.  
  153.     ENDIF    ; ...already included